<div class="modal" ng-controller="FlowableInParametersPopupCtrl">
  <div class="modal-dialog modal-wide">
    <div class="modal-content">
      <div class="modal-header">
        <button aria-hidden="true" class="close" data-dismiss="modal" ng-click="close()" type="button">&times;</button>
        <h2>{{'PROPERTY.PROPERTY.EDIT.TITLE' | translate}} "{{property.title | translate}}"</h2>
      </div>
      <div class="modal-body">

        <div class="row row-no-gutter">
          <div class="col-xs-6">
            <div class="kis-listener-grid" ng-if="translationsRetrieved" ui-grid="gridOptions" ui-grid-selection></div>
            <div class="pull-right">
              <div class="btn-group">
                <a class="btn btn-icon btn-lg" data-original-title="" data-placement="bottom"
                   data-title="{{'ACTION.MOVE.UP' | translate}}" ng-click="moveParameterUp()" rel="tooltip" title=""><i
                        class="glyphicon glyphicon-arrow-up"></i></a>
                <a class="btn btn-icon btn-lg" data-original-title="" data-placement="bottom"
                   data-title="{{'ACTION.MOVE.DOWN' | translate}}" ng-click="moveParameterDown()" rel="tooltip"
                   title=""><i
                        class="glyphicon glyphicon-arrow-down"></i></a>
              </div>
              <div class="btn-group">
                <a class="btn btn-icon btn-lg" data-original-title="" data-placement="bottom"
                   data-title="{{'ACTION.ADD' | translate:property}}" ng-click="addNewParameter()" rel="tooltip"
                   title=""><i
                        class="glyphicon glyphicon-plus"></i></a>
                <a class="btn btn-icon btn-lg" data-original-title="" data-placement="bottom"
                   data-title="{{'ACTION.REMOVE' | translate:property}}" ng-click="removeParameter()" rel="tooltip"
                   title=""><i
                        class="glyphicon glyphicon-minus"></i></a>
              </div>
            </div>
          </div>

          <div class="col-xs-6">
            <div ng-show="selectedParameter">

              <div class="form-group">
                <label for="sourceField">{{'PROPERTY.PARAMETER.SOURCE' | translate}}</label>
                <input class="form-control" id="sourceField" ng-model="selectedParameter.source"
                       placeholder="{{'PROPERTY.PARAMETER.SOURCE.PLACEHOLDER' | translate}}"
                       type="text"/>
              </div>
              <div class="form-group">
                <label for="expressionField">{{'PROPERTY.PARAMETER.SOURCEEXPRESSION' | translate}}</label>
                <input class="form-control" id="expressionField" ng-model="selectedParameter.sourceExpression"
                       placeholder="{{'PROPERTY.PARAMETER.SOURCEEXPRESSION.PLACEHOLDER' | translate}}"
                       type="text"/>
              </div>
              <div class="form-group">
                <label for="expressionField">{{'PROPERTY.PARAMETER.TARGET' | translate}}</label>
                <input class="form-control" id="expressionField" ng-model="selectedParameter.target"
                       placeholder="{{'PROPERTY.PARAMETER.TARGET.PLACEHOLDER' | translate}}"
                       type="text"/>
              </div>

            </div>
            <div class="muted no-property-selected" ng-show="!selectedParameter" translate>PROPERTY.PARAMETER.EMPTY
            </div>
          </div>
        </div>
      </div>
      <div class="modal-footer">
        <button class="btn btn-primary" ng-click="cancel()" translate>ACTION.CANCEL</button>
        <button class="btn btn-primary" ng-click="save()" translate>ACTION.SAVE</button>
      </div>
    </div>
  </div>
</div>
